﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XNAGuiLib.Core.Events
{
    public delegate void ComponentEventHandler(Object sender, ComponentEventArgs e);


    public class ComponentEventArgs : EventArgs
    {

        #region ComponentEventArgs Public Field - Component
        Component _component;
        /// <summary>
        /// gets the component the event affects
        /// </summary>
        public Component Component
        {
            get { return this._component; }
        }
        #endregion

        public ComponentEventArgs(Component component)
        {
            this._component = component;
        }
    }
}